<?php 
include "../tools_config.php"; 
include "head.php";
include "footer.php";

require "../config/header.php";
require "../includes/enter_num_only.php";
require "../includes/get_btn.php";

require "../includes/copyright_year.php";
?>

<?php
$seo = array(
	'description' => '不知道自己网站可以承受多少负荷？快来用这个「网站压力测试」小工具来试试吧！',
	'keywords' => '网站压力测试，压力测试，DDOS',
);
?>
<link href="style.css" rel="stylesheet">
<div class="centerd">
<h3>攻击次数：<span id="total">0</span></h3>
<h4 class="padding-top">参数 <small>0威力最大</small></h3>
<div class="col-sm-5 input-group centerd">
	<input type="number" class="form-control" id="sec" value="0.1" <?php enter_num_only(); ?> />
	<span class="input-group-addon">秒 / 次</span>
	<span class="input-group-btn">
		<button class="<?php echo get_btn(); ?>" id="btn-rate" type="button">修改</button>
	</span>
</div>
<h4 class="padding-top">网址清单 <small>一行一个</small></h4>
<div class="col-sm-8 input-group centerd">
	<textarea class="form-control" id="addurl" rows="10" placeholder="http://www.google.com/"></textarea>
</div>
<div class="col-sm-10 input-group centerd padding-top">
<table class="centerd">
	<tbody id="sites"></tbody>
</table>
</div>
<div class="col-sm-10 input-group centerd padding-top">
	<button id="btn-start" class="<?php echo get_btn('success'); ?> btn-large">套用/开始</button>
</div>
</div>
<?php
$footer = array(
	'more_footer' => '请不要将此工具用非法用途，否侧后果自负！',
	'more_footer_copyright' => 'OK-TW',
	'extra_script' => array("underscore.min.js"),			//Extra Script File
);
?>

<?php 
require "../config/footer.php";
require "../footer.php";
?>
<?php get_footer($footer); ?>
